﻿@{
    ViewData["Title"] = "QuartzConfig";
    Layout = "~/Views/_ViewImports.cshtml";
}

<style>
    .layui-tab {
        width: 95%;
        margin: 10px auto;
    }

    .layui-form-label {
        width: 120px !important;
    }

    .layui-input-block {
        margin-left: 120px !important;
        width:50%;
    }
</style>

<div class="layui-tab">
    <ul class="layui-tab-title">
        <li class="layui-this">邮箱配置</li>
        <li>其他配置</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">

            <ul class="layui-form layui-form-pane" lay-filter="mail_config">
                <li class="layui-form-item">
                    <label class="layui-form-label">邮件通知：</label>
                    <div class="layui-input-block">
                        <input type="checkbox" id="is_mail_enable" name="is_mail_enable" value="true" lay-filter="mail_enbale" lay-skin="switch" lay-text="开启|关闭">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">发件服务器：</label>
                    <div class="layui-input-block">
                        <input type="text" name="mail_server_addr" lay-verify="required" placeholder="请输入服务器地址" autocomplete="off" class="layui-input laybt-disabled">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">端口：</label>
                    <div class="layui-input-block">
                        <input type="text" name="mail_server_port" lay-verify="required" placeholder="请输入端口号" autocomplete="off" class="layui-input laybt-disabled">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">SSL：</label>
                    <div class="layui-input-block">
                        <input class="laybt-disabled" type="checkbox" name="is_mail_ssl_enable" value="true" lay-skin="switch" lay-text="开启|关闭">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">发件人：</label>
                    <div class="layui-input-block">
                        <input type="text" name="send_mail_name" lay-verify="required" placeholder="请输入发件人" autocomplete="on" class="layui-input laybt-disabled">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">发件邮箱：</label>
                    <div class="layui-input-block">
                        <input type="text" name="send_mailbox" lay-verify="required|email" placeholder="请输入发件邮箱" autocomplete="on" class="layui-input laybt-disabled">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">授权码：</label>
                    <div class="layui-input-block">
                        <input type="password" name="mail_code" lay-verify="required" placeholder="请输入授权码" autocomplete="on" class="layui-input laybt-disabled">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">收件邮箱：</label>
                    <div class="layui-input-block">
                        <textarea name="receiv_mail" placeholder="请输入收件邮箱，多个邮箱【,】隔开" class="layui-textarea laybt-disabled"></textarea>
                    </div>
                </li>
                <li class="layui-form-item">
                    <div class="layui-input-block">
                        <a class="layui-btn layui-btn-primary" lay-submit lay-filter="mail_test">测试</a>
                        <a class="layui-btn" lay-submit lay-filter="mail_save">立即提交</a>
                    </div>
                </li>
            </ul>

        </div>
        <div class="layui-tab-item">
            暂未开发
        </div>
    </div>
</div>

<script src="~/js/Quartz/QuartzConfig.js"></script>
